package com.ysh.mapper;

import com.ysh.domain.City;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CityMapper {
    // 查询所有城市列表
    @Select("select * from city")
    public List<City> findAll();

    //根据id找籍贯名称
    @Select("select * from city where id=#{id}")
    City findById(int id);

}
